From aff1183af8d8df85d570ddf54ee1733fedfc7fe1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Mon, 20 May 2024 20:26:42 +0200 Subject: [PATCH] workspaceThumbnails: Update target scale when fully unexpanded We currently only update the scale when fully expanded. In order to fix the initial expand transition, also update the scale when fully unexpanded. Part-of: (cherry picked from commit 6fa6dd6abb9912b3f74357909ecbd20946d6663a) --- js/ui/workspaceThumbnail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 4e490478b..143d1cd75 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -1266,7 +1266,7 @@ export const ThumbnailsBox = GObject.registerClass({ // Compute the scale we'll need once everything is updated, // unless we are currently transitioning - if (this._expandFraction === 1) { + if (this._expandFraction === 0 || this._expandFraction === 1) { const [, natWidth] = this.get_preferred_width(-1); const [, natHeight] = this.get_preferred_height(natWidth); const totalSpacing = (nWorkspaces - 1) * spacing; -- 2.39.5